#local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
#local ret_status="%(?:%{$fg_bold[green]%}😊 :%{$fg_bold[red]%}😭 )"

local ret_status="%(?:%{$fg_bold[green]%}√ :%{$fg_bold[red]%}✗ )"

# The option promptsubst enables the substitution of parameters inside the prompt each time the prompt is drawn, in this case COLUMNS.
setopt promptsubst
local ipaddr=`(hostname -I 2>/dev/null || hostname -i) | awk -F" +"  '{print $1}'`

PROMPT='%F{8}${(r:$COLUMNS::-:)}%{$reset_color%}
[%F{12}$(date "+%Y-%m-%d %H:%M:%S")%{$reset_color%}] %B%F{13}${USER}%{$reset_color%}%{$fg[white]%}@%B%F{196}${HOST}%{$reset_color%}-%F{6}${ipaddr}%{$fg[white]%}:%{$fg[yellow]%}$PWD%{$reset_color%} $(git_prompt_info)
${ret_status}%{$reset_color%}'

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
